<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
%>
<link href="<%=path%>/css/admin_type.css" rel="stylesheet"
	type="text/css">
<jsp:include page="/user/initMenus.fm"></jsp:include>
<div class="left">
	<ol>
		<c:forEach var="menu" items="${menus}">
			<li>
				<p><a>${menu.name}</a></p>
				<dl>
					<c:forEach var="child" items="${menu.children}">
						<dd>
						<c:choose>
							<c:when test="${child.url == null || child.url == ''}">
								<a href="<%=path%>/page/main.jsp" target="mainFrame">${child.name}</a>
							</c:when>
							<c:otherwise>
								<a href="<%=path%>/${child.url}" target="mainFrame">${child.name}</a>
							</c:otherwise>
						</c:choose>
						</dd>
					</c:forEach>
				</dl>
			</li>
		</c:forEach>
	</ol>
</div>